﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UnrealConverterLogic;

namespace References
{
    public partial class formReferences : Form
    {
        public formReferences()
        {
            InitializeComponent();
            
            UnrealConverter.AddFormReference(this);
            UnrealConverter.InitReferences();
            UnrealConverter.SetRefFormSize(this.Size);
            
            this.Resize += UnrealConverter.OnFormResized;
            this.Location = new Point
            (
                UnrealConverter.formMainPosition.X,
                UnrealConverter.formMainPosition.Y + this.Height + 10
            );
            this.FormClosed += new FormClosedEventHandler
            (
                delegate(object o, FormClosedEventArgs e)
                {
                    UnrealConverter.bFormReferencesOpen = false;
                }
            );
        }
    }
}
